package com.innovatio.validator.annotations;


import com.innovatio.validator.handlers.ValidateLengthHandler;
import com.innovatio.utils.general.CommonsUtils;

import java.lang.annotation.Target;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;

/**
 * This code is property of Innovatio Software Solutions, Inc.
 * Project PaySmart
 * User: Ramon
 * Refactored By:Edxe
 * Date: Mar 4, 2009
 * Time: 11:24:19 AM
 */
@Target(java.lang.annotation.ElementType.FIELD)
@Retention(RetentionPolicy.RUNTIME)
@Validation(ValidateLengthHandler.class)
public @interface ValidateLength {
    int min() default 0 ;
    int max() default Integer.MAX_VALUE;
    String i18nBundleKey() default "validation_length";
}
